if (GRAD_INTERVALS_DONE >= GRAD_INTERVALS_NEEDED) then {
     100
} else {
     round (GRAD_TICKS_DONE/GRAD_TICKS_NEEDED*100)
};